#include <iostream>
using namespace std;
class Solution {
public:
    int exchangeBits(int num) {
        return ((num & 0x55555555) << 1 | (num & 0xAAAAAAAA) >> 1);
    }
};
int main()
{
    return 0;
}